import request from '@/utils/request'

export function getIndustryList(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/knowledge/industry/getList',
    method: 'post',
    data: query
  })
}   

export function getIndustryUsableList(query) {
    if(query != undefined){
      query = JSON.parse(JSON.stringify(query))
    }
    return request({
      url: '/knowledge/industry/getUsableList',
      method: 'post',
      data: query
    })
  }   

export function saveIndustry(query) {
  return request({
    url: '/knowledge/admin/industry/save',
    method: 'post',
    data: query
  })
}

export function copyIndustry(query) {
  return request({
    url: '/knowledge/admin/industry/copy',
    method: 'post',
    data: query
  })
}

export function removeIndustry(query) {
  return request({
    url: '/knowledge/admin/industry/remove',
    method: 'post',
    data: query
  })
}
export function getIndustryDetail(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/knowledge/admin/industry/getDetail',
    method: 'post',
    data: query
  })
}